//
//  JddQueryInitiatePlanOperation.m
//  PlayBall
//
//  Created by My Mac JiangDuoDuo on 14-8-20.
//
//

#import "JddQueryInitiatePlanOperation.h"

@implementation JddQueryInitiatePlanOperation
- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryInitiatePlanOperationUserId:self.userId pageNo:self.pageNo pageSize:self.pageSize];
    
    NSData *dataInitiatePlan = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(InitiatePlanOperationResult:) withObject:dataInitiatePlan waitUntilDone:NO];
}

@end
